﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SIG.Model;
using System.Linq.Expressions;
using SIG.Core;

namespace SIG.Service
{
    public interface IEntityService<T> : IService
     where T : BaseEntity
    {
        
        T GetById(object id);
        IEnumerable<T> FindBy(Expression<Func<T, bool>> predicate);
        void Create(T entity);
        void Delete(T entity);
        IQueryable<T> GetAll();     
        void Update(T entity);
    }
}
